﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElectronicCommerce.Framework.Web.UI
{
    public abstract class JsonPageBase : PageBase
    {
        public JsonPageBase()
            : base()
        {
        }

        private JsonResult _jsonResult = new JsonResult();
        protected JsonResult JsonResult
        {
            get { return _jsonResult; }
            set { _jsonResult = value; }
        }

        protected override void OnLoad(EventArgs e)
        {
            SetNoCache();
            JsonResult.ExecuteResult(this.Context);
            base.OnLoad(e);
        }
    }
}
